package bean;

import java.util.*;

public class Student {
    private String stuNum;
    private String stuName;
    private String stuGender;
    private int stuAge;
    private double weight;
    //入学日期
    private Date entranceTime;
    private Clazz clazz;
//    private List<String> hobbies;
    private List<String> books;
    private Set<String> sets;

    @Override
    public String toString() {
        return "Student{" +
                "stuNum='" + stuNum + '\'' +
                ", stuName='" + stuName + '\'' +
                ", stuGender='" + stuGender + '\'' +
                ", stuAge=" + stuAge +
                ", weight=" + weight +
                ", entranceTime=" + entranceTime +
                ", clazz=" + clazz +
                ", books=" + books +
                ", sets=" + sets +
                ", maps=" + maps +
                ", properties=" + properties +
                '}';
    }

    private Map<String ,Object> maps;
//    继承关系Properties->Hashtable->Map,它的key和value只能String类型。
    private Properties properties;

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public Set<String> getSets() {
        return sets;
    }

    public List<String> getBooks() {
        return books;
    }

    public void setBooks(List<String> books) {
        this.books = books;
    }

    public void setSets(Set<String> sets) {
        this.sets = sets;
    }

    public Map<String, Object> getMaps() {
        return maps;
    }

    public void setMaps(Map<String, Object> maps) {
        this.maps = maps;
    }



    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public Clazz getClazz() {
        return clazz;
    }

    //set方法注入
    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public String getStuGender() {
        return stuGender;
    }

    public void setStuGender(String stuGender) {
        this.stuGender = stuGender;
    }


    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public Date getEntranceTime() {
        return entranceTime;
    }

    public void setEntranceTime(Date entranceTime) {
        this.entranceTime = entranceTime;
    }

//    public Student() {
//    }

    //构造其方法注入
//    public Student(String stuNum) {
//        this.stuNum = stuNum;
//    }
}
